package cn.zb.zbrhback.auth.mapper;

import cn.zb.zbrhback.auth.domain.Role;
import cn.zb.zbrhback.auth.domain.RoleQuery;
import cn.zb.zbrhback.basic.mapper.BaseMapper;
import cn.zb.zbrhback.basic.util.MenuDTO;
import cn.zb.zbrhback.basic.util.PermissionDTO;
import cn.zb.zbrhback.basic.util.RoleDTO;
import cn.zb.zbrhback.org.domain.Employee;

import java.io.Serializable;
import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    void removeById(Serializable id);

    List<Role> loadPage(RoleQuery roleQuery);

    List<String> getSnByRoleId(Long roleId);

    void saveRolePermission(PermissionDTO permissionDTO);

    List<Long> getRoleMenuById(Long id);

    void saveMenu(MenuDTO menuDTO);

    void deleteMenuById(Long id);

    List<Long> getAllRoleId();

    List<Long> getSnById(Long id);

    void deleteRoleById(Long id);

    void saveRole(RoleDTO roleDTO);
}
